//
//  UIView+TGAddition.h
//  Tools
//
//  Created by 罗先森 on 2017/8/8.
//  Copyright © 2017年 Trouble Group. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (TGAddition)

/// 返回屏幕截图
- (UIImage *)tg_snapshotImage;




@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;

- (CGFloat)width;

- (CGFloat)height;

- (CGFloat)left;

- (CGFloat)right;

- (CGFloat)top;

- (CGFloat)bottom;

- (void)setWidth:(CGFloat)width;

- (void)setHeight:(CGFloat)height;

- (void)setXOffset:(CGFloat)x;

- (void)setYOffset:(CGFloat)y;

- (void)setOrigin:(CGPoint)newOrigin;

- (void)setSize:(CGSize)newSize;




@end
